package com.cn.web.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

import com.cn.web.dao.utils.Query;

/**
 * t_user: 
 * domain层
 * @author ygc
 * @version 1.0
 */
@Table(name = "t_user")
public class TUser  extends BaseEntity implements Serializable{
	private static final long serialVersionUID = -5581306343408447902L;
	
	@Id
	@Column
	protected Long id;

	/**
	 * user_name : 登录名
	 */
	@Column(name="user_name")
	public String userName;

	/**
	 * mdn : 手机号码
	 */
	@Column(name="mdn")
	public String mdn;

	/**
	 * email : 邮箱
	 */
	@Column(name="email")
	public String email;

	/**
	 * password : 登录密码
	 */
	@Column(name="password")
	public String password;

	/**
	 * state : 状态
	 */
	@Column(name="state")
	public Integer state;

	/**
	 * record_status : 记录状态(0:有效 1:无效)
	 */
	@Column(name="record_status")
	public Integer recordStatus;

	/**
	 * create_user : 创建人
	 */
	@Column(name="create_user")
	public Long createUser;

	/**
	 * create_time : 创建时间
	 */
	@Column(name="create_time")
	public Date createTime;

	/**
	 * update_user : 更新人
	 */
	@Column(name="update_user")
	public Long updateUser;

	/**
	 * update_time : 更新时间
	 */
	@Column(name="update_time")
	public Date updateTime;

	
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	/**
	 * 取得user_name
	 */
	public String getUserName () {
		return userName;
	}

	/**
	 * 设置user_name
	 */
	public void setUserName (String userName) {
		this.userName = userName;
	}
	/**
	 * 取得mdn
	 */
	public String getMdn () {
		return mdn;
	}

	/**
	 * 设置mdn
	 */
	public void setMdn (String mdn) {
		this.mdn = mdn;
	}
	/**
	 * 取得email
	 */
	public String getEmail () {
		return email;
	}

	/**
	 * 设置email
	 */
	public void setEmail (String email) {
		this.email = email;
	}
	/**
	 * 取得password
	 */
	public String getPassword () {
		return password;
	}

	/**
	 * 设置password
	 */
	public void setPassword (String password) {
		this.password = password;
	}
	/**
	 * 取得state
	 */
	public Integer getState () {
		return state;
	}

	/**
	 * 设置state
	 */
	public void setState (Integer state) {
		this.state = state;
	}
	/**
	 * 取得record_status
	 */
	public Integer getRecordStatus () {
		return recordStatus;
	}

	/**
	 * 设置record_status
	 */
	public void setRecordStatus (Integer recordStatus) {
		this.recordStatus = recordStatus;
	}
	/**
	 * 取得create_user
	 */
	public Long getCreateUser () {
		return createUser;
	}

	/**
	 * 设置create_user
	 */
	public void setCreateUser (Long createUser) {
		this.createUser = createUser;
	}
	/**
	 * 取得create_time
	 */
	public Date getCreateTime () {
		return createTime;
	}

	/**
	 * 设置create_time
	 */
	public void setCreateTime (Date createTime) {
		this.createTime = createTime;
	}
	/**
	 * 取得update_user
	 */
	public Long getUpdateUser () {
		return updateUser;
	}

	/**
	 * 设置update_user
	 */
	public void setUpdateUser (Long updateUser) {
		this.updateUser = updateUser;
	}
	/**
	 * 取得update_time
	 */
	public Date getUpdateTime () {
		return updateTime;
	}

	/**
	 * 设置update_time
	 */
	public void setUpdateTime (Date updateTime) {
		this.updateTime = updateTime;
	}

}
